package ar.edu.utn.frba.dds.opendesigners.ui.arena;

import org.uqbar.arena.actions.MessageSend;
import org.uqbar.arena.aop.windows.TransactionalDialog;
import org.uqbar.arena.widgets.Button;
import org.uqbar.arena.widgets.Panel;
import org.uqbar.arena.windows.WindowOwner;
import org.uqbar.commons.utils.Observable;

import ar.edu.utn.frba.dds.opendesigners.resultados.AsientoGridItem;

@SuppressWarnings("serial")
@Observable
public class ResultadoOperacionConsultaSRWindow extends TransactionalDialog<AsientoGridItem> {

	public ResultadoOperacionConsultaSRWindow(WindowOwner owner, AsientoGridItem model) {
		super(owner, model);
		// TODO Auto-generated constructor stub
	}

	@Override
	protected void createFormPanel(Panel mainPanel) {
		// TODO Auto-generated method stub
	}

	@Override
	protected void addActions(Panel actions) {
		new Button(actions)
			.setCaption("Sobrereservar")
			.onClick(new MessageSend(this, "accept"))
			.setAsDefault()
			.disableOnError();
		new Button(actions)
			.setCaption("Seguir buscando")
			.onClick(new MessageSend(this, "cancel"))
			.setAsDefault()
			.disableOnError();
	}
	
}
